package com.example.demo.modules.wiki.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.example.demo.modules.wiki.entity.Story;

import java.util.List;


public interface StoryService extends IService<Story>{

    /**Error:java: Internal compiler error: java.lang.Exception: java.lang.NoClassDefFoundError: org/springframework/boot/configurationprocessor/metadata/ConfigurationMetadata at org.eclipse.jdt.internal.compiler.apt.dispatch.RoundDispatcher.handleProcessor(RoundDispatcher.java:172)
     * 查询所有
     * @return
     */
    List<Story> listAll();

    /**
     * id条件查询
     * @return
     */
    Story listOne(Long id);

    /***
     * 保存
     * @return
     */
    int insert(Story story);

}